package com.LittleHan.crm.exceptionHandler;

import com.LittleHan.crm.exception.ClueInsertException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ClueInsertExceptionHandler {
    @ExceptionHandler(ClueInsertException.class)
    public String clueInsertException(Exception e){
        return "{\"yesOrNo\",\"no\"}";
    }
}
